+2005-02-20 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
+ the last user interaction when focusing the window. (#166379,
+ Elijah Newren)
+
Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
* gtk/gtkuimanager.c (start_element_handler): make sure expand
+2005-02-20 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
+ the last user interaction when focusing the window. (#166379,
+ Elijah Newren)
+
Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
* gtk/gtkuimanager.c (start_element_handler): make sure expand
+2005-02-20 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
+ the last user interaction when focusing the window. (#166379,
+ Elijah Newren)
+
Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
* gtk/gtkuimanager.c (start_element_handler): make sure expand
#include "gtkmarshalers.h"
#include "gtkplug.h"
+#ifdef GDK_WINDOWING_X11
+#include "x11/gdkx.h"
+#endif
+
enum {
SET_FOCUS,
FRAME_EVENT,
/* note that gdk_window_focus() will also move the window to
* the current desktop, for WM spec compliant window managers.
*/
+#ifdef GDK_WINDOWING_X11
+ gdk_window_focus (widget->window,
+ gdk_x11_display_get_user_time (gtk_widget_get_display (widget)));
+#else
gdk_window_focus (widget->window,
gtk_get_current_event_time ());
+#endif
}
else
{